<?php
namespace app\manage\model;
/**
 * Created by PhpStorm.
 * User: junyv
 * Date: 2016/9/18
 * Time: 10:36
 */
class Announce extends \think\Model
{
    protected $autoWriteTimestamp = true;
    protected $updateTime = false;
    protected $insert = ['editor','editor_id'];
    protected function setEditorIdAttr()
    {
        return session('adminInfo.id');
    }
    protected function setEditorAttr()
    {
        return session('adminInfo.username');
    }
    protected function setTimeoutAttr($value){
        return strtotime($value);
    }
}